 

#region Copyright Statement
//////////////////////////////////////////////
//	ORMAC
//  By: Ali Ghomi (2011)
//////////////////////////////////////////////
#endregion

#region using
using System;
using System.Collections.Generic;
using ORMAC;
using ORMAC.Attributes;
using System.Runtime.Serialization;
#endregion

namespace Test
{
	/// <summary>
	/// Auto generated class by ORMAC from Customers table
	/// </summary>
	[Table("Customers")]
	[DataContract]
	public class OCustomers
	{
		/// <summary>
		/// Auto generated property by ORMAC from CustomerID column
		/// </summary>		
		[PrimaryKey]
		[Field("CustomerID")]
		[DataMember]
		public string CustomerID{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from CompanyName column
		/// </summary>		
		[Field("CompanyName")]
		[DataMember]
		public string CompanyName{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from ContactName column
		/// </summary>		
		[Field("ContactName")]
		[DataMember]
		public string ContactName{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from ContactTitle column
		/// </summary>		
		[Field("ContactTitle")]
		[DataMember]
		public string ContactTitle{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from Address column
		/// </summary>		
		[Field("Address")]
		[DataMember]
		public string Address{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from City column
		/// </summary>		
		[Field("City")]
		[DataMember]
		public string City{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from Region column
		/// </summary>		
		[Field("Region")]
		[DataMember]
		public string Region{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from PostalCode column
		/// </summary>		
		[Field("PostalCode")]
		[DataMember]
		public string PostalCode{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from Country column
		/// </summary>		
		[Field("Country")]
		[DataMember]
		public string Country{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from Phone column
		/// </summary>		
		[Field("Phone")]
		[DataMember]
		public string Phone{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from Fax column
		/// </summary>		
		[Field("Fax")]
		[DataMember]
		public string Fax{
			get;
			set;
		}
		/// <summary>
		/// Auto generated class property by ORMAC using
		///CustomerID as primary key and CustomerID as foreign key in  Orders table
		/// </summary>				
		[DataMember]
		[Join(ParentCol="CustomerID",ChildCol="CustomerID")]
		public List<OOrders> Orderss{
			get;
			set;
		}
		[DataMember]
		[LinkTable(LinkTableName="CustomerCustomerDemo", ParentCol="CustomerID",LinkTableParentCol="CustomerID",LinkTableChildCol="CustomerTypeID",ChildCol="CustomerTypeID")]		
		public List<OCustomerDemographics> CustomerDemographicss{
			get;
			set;
		}

	}
}
